import request from '@/utils/request'

// 查询通知消息列表
export function listMessage(data) {
  return request({
    url: '/message/message/list',
    method: 'post',
    data: data
  })
}

// 查询通知消息详细
export function getMessage(id) {
  return request({
    url: '/message/message/' + id,
    method: 'get'
  })
}

// 新增通知消息
export function addMessage(data) {
  return request({
    url: '/message/message/add',
    method: 'post',
    data: data
  })
}

// 修改通知消息
export function updateMessage(data) {
  return request({
    url: '/message/message/edit',
    method: 'post',
    data: data
  })
}

// 删除通知消息
export function delMessage(id) {
  return request({
    url: '/message/message/remove/' + id,
    method: 'post'
  })
}
